<div class="footer {if $Think.config.web_platform == 'umefit'}lemon{/if}">
    <div class="footer-wrapper">
        <div class="footer-container-download">
            <div class="footer-info">
                <h3 class="footer-info-title">{:__('Download')}</h3>
            </div>
            {if cookie('home_title') == 'Vymeet'}
            <div class="footer-card">
                <p class="footer-info-text">
                    <a href="/admin/downloadcenter/index">{:__('Download center')}</a>
                </p>
            </div>
            {else /}
            <div class="footer-card">
                {if $Think.config.downloadName.mobile_ios}
                <p class="footer-info-text">
                    <a href="{$Think.config.downloadName.mobile_ios}" target="_blank">{:__('Download iOS App')}</a>
                </p>
                {/if}
                {if $Think.config.downloadName.mobile_android}
                <p class="footer-info-text">
                    <a href="{$Think.config.home_url}/update/{$Think.config.downloadName.mobile_android}">{:__('Download Android App')}</a>
                </p>
                {/if}
                {if $Think.config.downloadName.pc_windows}
                <p class="footer-info-text">
                    <a href="{$Think.config.home_url}/update/{$Think.config.downloadName.pc_windows}">{:__('Download Windows Client')}</a>
                </p>
                {/if}
                {if $Think.config.downloadName.pc_mac}
                <p class="footer-info-text">
                    <a href="{$Think.config.home_url}/update/{$Think.config.downloadName.pc_mac}">{:__('Download Mac Client')}</a>
                </p>
                {/if}
                {if $Think.config.edition == 'regular'}
                {if $Think.config.downloadName.pc_yhkylin}
                <p class="footer-info-text">
                    <a href="{$Think.config.home_url}/kylin-update/{$Think.config.downloadName.pc_yhkylin}">{:__('Download Kylin Client')}</a>
                </p>
                {/if}
                {/if}
                {if $Think.config.downloadName.win_touch}
                <p class="footer-info-text">
                    <a href="{$Think.config.home_url}/rooms-update/{$Think.config.downloadName.win_touch}">{:__('Download Windows Tablet Client')}</a>
                </p>
                {/if}
                {if $Think.config.downloadName.android_touch}
                <p class="footer-info-text">
                    <a href="{$Think.config.home_url}/update/{$Think.config.downloadName.android_touch}">{:__('Download Android Tablet Client')}</a>
                </p>
                {/if}
            </div>
            {/if}
        </div>
        {if $Think.config.webSwitches.bottom_sales}
        <div class="footer-container-sales">
            <div class="footer-info">
                <h3 class="footer-info-title">{:__('Sales')}</h3>
            </div>
            <div class="footer-card">
                {if $Think.config.webSwitches.payplan}
                <p class="footer-info-text">
                    <a href="/admin/index/about?t=payplan" id="pricingxxx">{:__('Plans & Pricing')}</a>
                    <span id="pricing_msg" style="display: none;">{:__('Please login to the mobile app and click the "Check the plan" button on the homepage')}</span>
                </p>
                {/if}
                {if $Think.config.webSwitches.contact_sales}
                <p class="footer-info-text">
                    <a href="/admin/index/about?t=contact_sales">{:__('Contact Sales')}</a>
                </p>
                {/if}
                {if $Think.config.versions == 'public'}
                <p class="footer-info-text">
                    <a href="{if $isLogin}/admin/index/index{else /}/admin/index/register{/if}">{:__('Try now')}</a>
                </p>
                {/if}
                <p class="footer-info-text">{:__('Cooperation partner')}</p>
            </div>
        </div>
        {/if}
        {if $Think.config.webSwitches.bottom_about}
        <div class="footer-container-consulting">
            <div class="footer-info">
                <h3 class="footer-info-title">{:__('About')}</h3>
            </div>
            <div class="footer-card">
                <p class="footer-info-text">{:__('About Us')}</p>
                {if config('showWords.tel')}
                <p class="footer-info-text">
                    <a href="tel:{$Think.config.showWords.tel_call}">
                        {$Think.config.showWords.tel}
                    </a>
                </p>
                {/if}
                {if config('showWords.qrcode_path')}
                <p class="footer-info-text qrcode-box" style="margin-top: 5px;">
                    <img src="__CDN__{$Think.config.showWords.qrcode_path}" class="icon-platform" alt="QrCode">
                </p>
                {/if}
            </div>
        </div>
        {/if}
    </div>

    <div class="footer-bottom">
        <div class="cm-language" style="display: inline-block;">
            <div role="heading" style="margin-left:20px;">
                {if cookie('home_title') == '优医'}
                {:__('优医ICP')}
                {elseif cookie('home_title') == 'Vymeet' /}
                {:__('VymeetICP')}
                {else /}
                {:__($Think.config.showWords.icp)}
                {/if}

                {if $Think.config.lang_switch_on}
                <span style="margin-left:20px;color:#eaeaea;display: inline-block;">{:__('Language')}</span>
                <ul style="display: inline-block; padding-left: 10px;" id="footer_lul">
                    <li style="list-style: none;border: 1px solid #fff;padding: 0px 0px 2px 15px;border-radius: 5px;" id="change_language">
                        <div class="dropdown-language dropdown open" style="position: relative;">
                            <a href="javascript:;" style="border-radius:5px;" class="dropdown-toggle">
                                {if isset($Think.config.lang_list[$config['language']])}
                                <span>{$Think.config.lang_list[$config['language']]}</span>
                                {else /}
                                <span>{$Think.config.lang_list['en']}</span>
                                {/if}
                                <span class="caret" style="margin-top: 9px;margin-left: 5px;"></span>
                            </a>
                            <ul class="dropdown-menu pull-right" id="choose_language" style="">
                                {foreach $Think.config.lang_list as $key=>$vo}
                                <li class="{if $config['language'] == $key}active{/if}">
                                    <a href="javascript:;" go="{$key}">{$vo}</a>
                                </li>
                                {/foreach}
                            </ul>
                        </div>
                    </li>
                </ul>
                {/if}
            </div>
        </div>
    </div>
</div>

<div class="warning_footer">
    {:__('It is detected that you are currently in IE kernel browser. If there is a display or data loading exception, we recommend that you use another browser to access it.')}
</div>

<iframe id="changeLanguageFrame" style="width:0;height:0;" frameborder="0"></iframe>
<script>
$(document).ready(function(){
    // 判断IE浏览器
    if (window.ActiveXObject || "ActiveXObject" in window) {
        $(".main-content").css({
            "padding-top":"64px",
            "overflow":"auto",
            "flex":"auto"
        });
        $(".home-web").css({"overflow":"hidden"});
        $(".home-mobile").css({"overflow":"hidden"});
        $("#footer_lul").css({"width":"120px"});
        $("#choose_language").css({
            "text-align":"left",
            "font-size":"inherit",
            "left":"-18px",
            "top":"inherit",
            "bottom":"140%",
        });
        $(".join-result-pc").css({"flex":"auto"});
        $(".footer").css({"max-height":"330px","margin-bottom":"30px"});
        $(".warning_footer").show();
    }else{
        $("#choose_language").css({
            "font-size":"inherit",
            "text-align":"left",
            "color":"#000",
            "bottom":"100%",
            "top":"unset",
            "left":"-18px",
            "margin-bottom":"2px"
        });
        $(".join-result-pc").css({"flex":1});
    }

    $("#pricing").click(function(){
        layer.msg($("#pricing_msg").html(), {
            time: 5000
        });
    })

    $("#change_language").click(function(e){
        if($("#choose_language").is(":hidden")) {
            $("#choose_language").show();
            e.stopPropagation();
        }else{
            $("#choose_language").hide();
        }
    });
    $(document.body).click(function(){
        $("#choose_language").hide();
    });

    $("#choose_language a").click(function(){
        var go  = $(this).attr("go");
        $("#changeLanguageFrame").attr("src", "/admin/index/changelanguage?lang="+go);
    })
})
</script>